{% extends "base.html" %}

{% block header %}
<h1>Locomotive ({{object}}) journal</h1>
{% endblock %}

{% block current_path %}
<p>Locomotives &rsaquo; {{object}} &rsaquo; Journal</p>
{% endblock %}

{% block menu %}
{% endblock %}

{% block content %}
<h2>Journal</h2>
<table>
    <thead>
        <tr>
            <th>Date</th>
            <th>Entry</th>
            <th class="action">Delete</th>
            <th class="action">Modify</th>
        </tr>
    </thead>
    <tbody>
        {% for o in object.locjournal_set.all %}
        <tr>
            <td>{{ o.log_date }}</td>
            <td>{{ o.log_record }}</td>
            <td class="action">
                {# <a href="{% url locomotive_journal_delete object.id o.id %}">Delete</a> #}
            </td>
            <td class="action">
                {# <a href="{% url locomotive_journal_modify object.id o.id %}">Modify</a> #}
            </td>
        </tr>
        {% endfor %}
    </tbody>
</table>
{% endblock %}